@inherits BaseEditPlugin
@namespace FluentCMS.Web.Plugins.Block
            
@if (Model is null)
{
    <BlockSelectModal Open OnBlockSelected="OnBlockSelected"/>
}
else
{
    <PluginModalForm Open="Open" Title="Edit Block Content" Model="@Model" OnCancel="OnCancel" OnSubmit="HandleSubmit" Name="@CONTENT_TYPE_NAME">
        <FormTextarea Hint="Use data-inline-editable attribute for text elements to enable Inline edit!" Placeholder="Enter Content" Rows="20" @bind-Value="@Model!.Content" Label="Content" />
    </PluginModalForm>
}